# -*- conding:utf-8 -*-
from django.contrib import admin

# Register your models here.
from books import models

class Authoradmin(admin.ModelAdmin):
    list_display=('auth_name','email')


class Publisheradmin(admin.ModelAdmin):
    list_display=('name','website')

class Booksadmin(admin.ModelAdmin):
    list_display=('book_name', 'price', 'publisher', 'publish_date')
    # list_display=('book_name', 'author', 'price', 'publisher', 'publish_date')
    list_filter = ('publisher', 'author')

admin.site.register(models.Books,Booksadmin)
admin.site.register(models.Author,Authoradmin)
admin.site.register(models.Publisher,Publisheradmin)
